package com.shen.pojo;

import java.util.Date;

/**
 * Author:shen
 * CreateDate:2020/4/28.
 * Function:
 */
public class Book {
    private String name;//书名
    private String publish;//出版社
    private String author;//作者
    private Date publishDate;//出版日期

    public Book() {
    }

    public Book(String name, String publish, String author, Date publishDate) {
        this.name = name;
        this.publish = publish;
        this.author = author;
        this.publishDate = publishDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPublish() {
        return publish;
    }

    public void setPublish(String publish) {
        this.publish = publish;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", publish='" + publish + '\'' +
                ", author='" + author + '\'' +
                ", publishDate=" + publishDate +
                '}';
    }
}
